-- Node(s)

minetest.register_node("claygen:claydirtmin", {
	description = "Dirt with clay-minerals",
	tiles = {"claygen_claydirtmin.png"},
	is_ground_content = true,
	groups = {crumbly=3},
	sounds = default.node_sound_dirt_defaults({
		footstep = "",
	}),
})


-- Craft item(s)

minetest.register_craftitem("claygen:clayminerals", {
	description = "Clay minerals",
	inventory_image = "claygen_clayminerals.png",
})


-- Cooking recipe(s)

minetest.register_craft({
	type = "cooking",
	output = '"claygen:clayminerals" 8',
	recipe = "default:furnace",
})


-- Crafting recipe(s)
minetest.register_craft({
	output = '"claygen:claydirtmin" 2',
	recipe = {
		{'default:dirt', 'claygen:clayminerals'},
	}
})


-- ABM(s)

minetest.register_abm({
	nodenames = {"claygen:claydirtmin"},
	neighbors = {"default:water_source", "default:water_flowing"},
	interval = 60,
	chance = 6,
	action = function(pos)
		minetest.env:add_node (pos, {name = "default:clay"})
	end,
})